<!--
 * @Author: mokevip
 * @Date: 2020-09-14 09:24:16
 * @LastEditors: mokevip
 * @LastEditTime: 2020-09-14 10:54:47
 * @Description: 
-->
<!DOCTYPE html>
<html lang="en">

<head>
    

    
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache,must-revalidate">
    <meta http-equiv="Cache" content="no-cache">
    <title>关税实训刷题宝</title>
    <link rel="stylesheet" href="./css/iview.css">
    
    <script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/crypto-js.min.js"></script>

    <script>
    
    
    
    
    
    
    
    
    

    
    
    
    
    
    
    
    
    var loggedIn = document.cookie.includes("loggedIn=true");
        if (loggedIn) {
        } else {
          var key = prompt("请输入您的密钥",);

            if (key !== null) {
                if(CryptoJS.MD5(key+'03a03d35857c79145d21f8be84968ed5').toString()==='c21fade259616468d0915d90a964126c'){
                    document.cookie = "loggedIn=true; expires=Fri, 5 sep 2024 23:22:59 GMT; path=/";
                    alert("密钥验证通过");
                    location.reload(false);
                }else {alert('密钥错误')
                    
                    window.location.href = "./404.html";
                }
                
            } else {
              location.reload(false);
            }
        }

        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?b3a7eb27703def9ba98376aca09290db";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>

    <style>
        .title {
            text-align: center;
            margin-top: 2vw;
        }
        
        .timuList {
            width: 96vw;
            margin: 2vw auto 0;
        }
        
        .timu {
            margin-top: 2vw;
        }
        
        .author {
            text-align: right;
            padding-right: 3.2vw;
            margin-bottom: 1.5vw;
        }
    </style>
</head>

<body>
    <div id="el">
        <h1 class='title'>关税实训刷题宝</h1>
        <div class="author"><a >低调使用，切勿转发，后台能看到😅</a></div>
        <div class="timuList">
            <div v-for="i in jsonList" @click='goNext(i.id,i.file)'>
                <Card class="timu">
                    <p slot="title">{{i.name}}</p>
                    {{i.describe}}
                </Card>
            </div>

        </div>
    </div>
    <script src="./js/public.js?version=1.0"></script>
    <script src="./js/vue.min.js"></script>
    <script src="./js/iview.min.js"></script>
    <script>
        const vue = new Vue({
            el: "#el",
            data: {
                jsonList: JSONList
            },
            methods: {
                goNext: function(id, file) {
                    sessionStorage.id = id;
                    sessionStorage.file = file;
                    window.location.href = "./type.html"
                }
            }
        })
    </script>
</body>

</html>